WT_DECLARE_WT_MEMBER(1,JavaScriptConstructor,"WImage",function(o,p,q){jQuery.data(p,"obj",this);var k=this,g=null,e=0,h="",b=null,d=0;this.setAreaCoordsJSON=function(a){g=a;h="";this.updateAreas()};this.updateAreas=function(){var a=q.combinedTransform;if(!(a===undefined||g===null)){a=a();var i=a.toString()!==h.toString();if(e===0&&d===0){if(i){h=a;e=(new Date).getTime();b=setTimeout(this.updateAreas,100)}}else{var c=(new Date).getTime();if(i){h=a;e=c;d=0;b&&clearTimeout(b);b=setTimeout(this.updateAreas,
100)}else if(d>0||e&&c-e>100)if(k.updateAreaCoords(50)){d=e=0;b&&clearTimeout(b);b=null}else{b&&clearTimeout(b);b=setTimeout(k.updateAreas,0)}else{a=c-e;if(a>100)a=100;b&&clearTimeout(b);b=setTimeout(k.updateAreas,a)}}}};this.updateAreaCoords=function(a){var i=o.WT.gfxUtils.transform_mult;a=d+a;if(a>g.length)a=g.length;for(;d<a;){var c=g[d],l=c[0];c=c[1];for(var m=c.length,j="",f=0;f+1<m;f+=2){if(f>0)j+=",";var n=i(h,c.slice(f,f+2));j+=Math.round(n[0]).toString()+","+Math.round(n[1]).toString()}if(f<
m)j+=","+c[f].toString();if(l)l.coords=j;d++}return a===g.length}});
